# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-nampa
_pkgname=nampa
pkgver=0.1.1
pkgrel=5
pkgdesc='FLIRT signatures for python.'
arch=('any')
url='https://pypi.org/project/nampa/#files'
license=('LGPL')
depends=('python' 'python-future')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('1e079c9ef4df07c8b8b6cd9894bcd0577b4115a9ac4679620109c9b80173ae1811a273dfdaf8813a3eefea4ec44f3d4494dc3381f4a9e84049a2995878a925a2')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

